#include "PAP_defs.h"
#include "derivative.h"

#define INTERRUPTS_ENABLED  1
#define INTERRUPTS_DISABLED 0

#define MTIM_ACTIVE     0
#define MTIM_INACTIVE   1

#define MTIM_BUS_CLOCK      0
#define MTIM_XCLK           1
#define MTIM_TCLK_FALLING   2
#define MTIM_TCLK_RISING    3

#define MTIM_PRESCALER_1    0
#define MTIM_PRESCALER_2    1
#define MTIM_PRESCALER_4    2
#define MTIM_PRESCALER_8    3
#define MTIM_PRESCALER_16   4
#define MTIM_PRESCALER_32   5
#define MTIM_PRESCALER_64   6 
#define MTIM_PRESCALER_128  7
#define MTIM_PRESCALER_256  8
                                        
void vfnMTIM_ClockSelect (uint8 u8clock);

void vfnMTIM_PrescalerSelect (uint8 u8prescaler);
 
void vfnMTIM_SetModulo (uint8 u8modulo);

void vfnMTIM_Reset (void);

uint8 u8MTIM_CheckOvFlag (void);

void vfnMTIM_InterruptEnable (uint8 u8interrupt);

void vfnMTIM_SetStatus (uint8 u8status);


